﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WordsOfLoveServer.Models.Forums;

namespace WordsOfLoveServer.Models.ReturnValues
{
	public class ForumPostInfo
	{
		public int Id { get; set; }
		public int UserId { get; set; }
		public string Title { get; set; }
		public string Content { get; set; }
		public DateTime CreateTime { get; set; }
		public DateTime UpdateTime { get; set; }

		public string UserName { get; set; }
		public int LikeCount { get; set; }
		public int CommentCount { get; set; }

		public ForumPostInfo(ForumPost post)
		{
			Id = post.Id;
			UserId = post.UserId;
			Title = post.Title;
			Content = post.Content;
			CreateTime = post.CreateTime;
			UpdateTime = post.UpdateTime;
		}
	}
}